home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3987 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: newshost.wcc.govt.nz!GRIFFITHS_S@kosmos.wcc.govt.nz
  2. From: griffiths_s@kosmos.wcc.govt.nz (SIMON)
  3. Newsgroups: comp.lang.c
  4. Subject: BMP picture question - Please help !
  5. Date: 1 Feb 1996 08:45:53 GMT
  6. Organization: Wellington City Council, Public Access
  7. Message-ID: <4epuk1$8md@golem.wcc.govt.nz>
  8. Reply-To: griffiths_s@kosmos.wcc.govt.nz
  9. NNTP-Posting-Host: kosmos.wcc.govt.nz
  10.  
  11. Greetings, I am writing a graphical routine for a screen saver and need 
  12. a little advice. What I would like to do is to draw a bmp picture on 
  13. the screen pixel by pixel (in some attractive fashion). This is a Windows
  14. screen saver and would like to be a 256 colour bmp file. 
  15.  
  16. If I put the bitmap on the form as a picture how to I just turn on the
  17. required pixels on at a time ? (this would be the prefered solution as
  18. it would not require an external file).
  19.  
  20. If I read in an external bmp file how do I set the windows palette and
  21. then plot the pixels ? (I presume this is done my some windows calls?)
  22.  
  23. Any advice or sample code (VB/Pascal or C would be great) anyone ?
  24.  
  25. Thanks, Simon
  26. <GRIFFITHS_S@kosmos.wcc.govt.nz>
  27. <Simon@clandwcs.co.nz>
  28.